
#include "S_41_DetectNobodySaveEnergy_doChange.h"
#include "property_decoder.h"
#include "spec.h"

void P_41_1_DetectNobodySaveEnergyOn_doChange(bool newValue)
{
	property_value_t thiz;
    memset(&thiz,0,sizeof(thiz));
#if 	PROPERTY_TYPE
	property_value_new_boolean(&thiz,newValue);
#else	
    thiz.format = PROPERTY_FORMAT_BOOLEAN;
    thiz.data.boolean.value = newValue;
#endif		
	
    if (send_property_changed(41, 1, &thiz) != MIIO_OK)
    {
        LOG_INFO("%s:send_property_changed failed!\n",__func__);
    }
}

void P_41_2_DetectNobodySaveEnergyStatus_doChange(bool newValue)
{
	property_value_t thiz;
    memset(&thiz,0,sizeof(thiz));
#if 	PROPERTY_TYPE
	property_value_new_boolean(&thiz,newValue);
#else	
    thiz.format = PROPERTY_FORMAT_BOOLEAN;
    thiz.data.boolean.value = newValue;
#endif		
	
    if (send_property_changed(41, 2, &thiz) != MIIO_OK)
    {
        LOG_INFO("%s:send_property_changed failed!\n",__func__);
    }
}


void P_41_3_DetectNobodyAdjustTempOn_doChange(bool newValue)
{
	property_value_t thiz;
    memset(&thiz,0,sizeof(thiz));
#if 	PROPERTY_TYPE
	property_value_new_boolean(&thiz,newValue);
#else	
    thiz.format = PROPERTY_FORMAT_BOOLEAN;
    thiz.data.boolean.value = newValue;
#endif		
	
    if (send_property_changed(41, 3, &thiz) != MIIO_OK)
    {
        LOG_INFO("%s:send_property_changed failed!\n",__func__);
    }
}

void P_41_4_DetectNobodyDurationTimer_doChange(int newValue)
{
	property_value_t thiz;
    memset(&thiz,0,sizeof(thiz));

	property_value_new_integer(&thiz,newValue);
	
	if (send_property_changed(41, 4, &thiz) != MIIO_OK)
    {
       LOG_INFO("%s:send_property_changed failed!\n",__func__);
    }
}

void P_41_5_DetectSomeoneAfterAdjustTempTimer_doChange(int newValue)
{
	property_value_t thiz;
    memset(&thiz,0,sizeof(thiz));

	property_value_new_integer(&thiz,newValue);
	
	if (send_property_changed(41, 5, &thiz) != MIIO_OK)
    {
       LOG_INFO("%s:send_property_changed failed!\n",__func__);
    }
}


void P_41_6_AdjustTempCool_doChange(int newValue)
{
	property_value_t thiz;
    memset(&thiz,0,sizeof(thiz));

	property_value_new_integer(&thiz,newValue);
	
	if (send_property_changed(41, 6, &thiz) != MIIO_OK)
    {
       LOG_INFO("%s:send_property_changed failed!\n",__func__);
    }
}

void P_41_7_AdjustTempHeat_doChange(int newValue)
{
	property_value_t thiz;
    memset(&thiz,0,sizeof(thiz));

	property_value_new_integer(&thiz,newValue);
	
	if (send_property_changed(41, 7, &thiz) != MIIO_OK)
    {
       LOG_INFO("%s:send_property_changed failed!\n",__func__);
    }
}

void P_41_8_DetectNobodyPowerOff_doChange(bool newValue)
{
	property_value_t thiz;
    memset(&thiz,0,sizeof(thiz));
#if 	PROPERTY_TYPE
	property_value_new_boolean(&thiz,newValue);
#else	
    thiz.format = PROPERTY_FORMAT_BOOLEAN;
    thiz.data.boolean.value = newValue;
#endif		
	
    if (send_property_changed(41, 8, &thiz) != MIIO_OK)
    {
        LOG_INFO("%s:send_property_changed failed!\n",__func__);
    }
}


void P_41_9_DetectNobodyDuration_PowerOff_doChange(int newValue)
{
	property_value_t thiz;
    memset(&thiz,0,sizeof(thiz));

	property_value_new_integer(&thiz,newValue);
	
	if (send_property_changed(41, 9, &thiz) != MIIO_OK)
    {
       LOG_INFO("%s:send_property_changed failed!\n",__func__);
    }
}

void P_41_10_DetectSomeoneAfterPoweredOff_doChange(int newValue)
{
	property_value_t thiz;
    memset(&thiz,0,sizeof(thiz));

	property_value_new_integer(&thiz,newValue);
	
	if (send_property_changed(41, 10, &thiz) != MIIO_OK)
    {
       LOG_INFO("%s:send_property_changed failed!\n",__func__);
    }
}
